package com.braintreepayments.cardform.utils;

import ohos.agp.utils.Color;
import ohos.app.Context;

public class ColorUtils {

    public static Color getColor(Context context, int resId) {
        try {
            return new Color(context.getResourceManager().getElement(resId).getColor());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return Color.BLACK;
    }
}
